Skip to content

Conversation

ewoudenberg-kasisto
Copy link

Use Case

On some websites, regular "polling" accesses may be made by browser code to certain paths within the website. This will cause the session activity timer to incorrectly assume that there is still user activity when in fact the activity stems only from browser code. This change allows the session-timeout code to ignore user-specified paths.

The paths are configured as a single Regular Expression string in the SESSION_ACTIVITY_IGNORED_PATHS_REGEX variable in settings.py. Multiple paths are separated by the "|" (regex "or) character.

See the example in the Readme file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant